namespace SharingCenter.Web.Classes
{
    using System.Linq;
    using System.Data.Linq;
    partial class scDataContext
    {
        //static scDataContext instance = null;

        public static scDataContext Instance
        {
            get
            {
                //if (null == instance)
                //{
                //    instance = new scDataContext();
                //}
                //return instance;
                return ServiceLayer.MyDataContextHelper.CurrentContext;
            }
        }
    }

    partial class Sc_Group
    {
        public void Detach()
        {
            this.PropertyChanged = null; 
            this.PropertyChanging = null;
        }
    }
}
